home *** CD-ROM | disk | FTP | other *** search
/ Merciful 1 / Merciful - Disc 1.iso / software / a / asm_one / asm-onev1.25c.dms / in.adf / Release3.0 / Include3.0.lha / Include3.0 / prefs / printerps.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-09-24  |  3.7 KB  |  170 lines

  1. #ifndef PREFS_PRINTERPS_H
  2. #define PREFS_PRINTERPS_H
  3. /*
  4. **    $VER: printerps.h 38.5 (24.02.92)
  5. **    Includes Release 39.108
  6. **
  7. **    File format for PostScript printer preferences
  8. **
  9. **    (C) Copyright 1991-1992 Commodore-Amiga, Inc.
  10. **    All Rights Reserved
  11. */
  12.  
  13. /*****************************************************************************/
  14.  
  15.  
  16. #ifndef EXEC_TYPES_H
  17. #include <exec/types.h>
  18. #endif
  19.  
  20. #ifndef LIBRARIES_IFFPARSE_H
  21. #include <libraries/iffparse.h>
  22. #endif
  23.  
  24.  
  25. /*****************************************************************************/
  26.  
  27.  
  28. #define ID_PSPD MAKE_ID('P','S','P','D')
  29.  
  30.  
  31. struct PrinterPSPrefs
  32. {
  33.     LONG  ps_Reserved[4];        /* System reserved */
  34.  
  35.     /* Global printing attributes */
  36.     UBYTE ps_DriverMode;
  37.     UBYTE ps_PaperFormat;
  38.     UBYTE ps_Reserved1[2];
  39.     LONG  ps_Copies;
  40.     LONG  ps_PaperWidth;
  41.     LONG  ps_PaperHeight;
  42.     LONG  ps_HorizontalDPI;
  43.     LONG  ps_VerticalDPI;
  44.  
  45.     /* Text Options */
  46.     UBYTE ps_Font;
  47.     UBYTE ps_Pitch;
  48.     UBYTE ps_Orientation;
  49.     UBYTE ps_Tab;
  50.     UBYTE ps_Reserved2[8];
  51.  
  52.     /* Text Dimensions */
  53.     LONG  ps_LeftMargin;
  54.     LONG  ps_RightMargin;
  55.     LONG  ps_TopMargin;
  56.     LONG  ps_BottomMargin;
  57.     LONG  ps_FontPointSize;
  58.     LONG  ps_Leading;
  59.     UBYTE ps_Reserved3[8];
  60.  
  61.     /* Graphics Options */
  62.     LONG  ps_LeftEdge;
  63.     LONG  ps_TopEdge;
  64.     LONG  ps_Width;
  65.     LONG  ps_Height;
  66.     UBYTE ps_Image;
  67.     UBYTE ps_Shading;
  68.     UBYTE ps_Dithering;
  69.     UBYTE ps_Transparency;
  70.     UBYTE ps_Reserved4[8];
  71.  
  72.     /* Graphics Scaling */
  73.     UBYTE ps_Aspect;
  74.     UBYTE ps_ScalingType;
  75.     UBYTE ps_ScalingMath;
  76.     UBYTE ps_Centering;
  77.     UBYTE ps_Reserved5[8];
  78. };
  79.  
  80. /* All measurements are in Millipoints which is 1/1000 of a point, or
  81.  * in other words 1/72000 of an inch
  82.  */
  83.  
  84. /* constants for PrinterPSPrefs.ps_DriverMode */
  85. #define DM_POSTSCRIPT  0
  86. #define DM_PASSTHROUGH 1
  87.  
  88. /* constants for PrinterPSPrefs.ps_PaperFormat */
  89. #define PF_USLETTER 0
  90. #define PF_USLEGAL  1
  91. #define PF_A4        2
  92. #define PF_CUSTOM   3
  93.  
  94. /* constants for PrinterPSPrefs.ps_Font */
  95. #define FONT_COURIER      0
  96. #define FONT_TIMES      1
  97. #define FONT_HELVETICA      2
  98. #define FONT_HELV_NARROW  3
  99. #define FONT_AVANTGARDE   4
  100. #define FONT_BOOKMAN      5
  101. #define FONT_NEWCENT      6
  102. #define FONT_PALATINO      7
  103. #define FONT_ZAPFCHANCERY 8
  104.  
  105. /* constants for PrinterPSPrefs.ps_Pitch */
  106. #define PITCH_NORMAL     0
  107. #define PITCH_COMPRESSED 1
  108. #define PITCH_EXPANDED     2
  109.  
  110. /* constants for PrinterPSPrefs.ps_Orientation */
  111. #define ORIENT_PORTRAIT  0
  112. #define ORIENT_LANDSCAPE 1
  113.  
  114. /* constants for PrinterPSPrefs.ps_Tab */
  115. #define TAB_4      0
  116. #define TAB_8      1
  117. #define TAB_QUART 2
  118. #define TAB_HALF  3
  119. #define TAB_INCH  4
  120.  
  121. /* constants for PrinterPSPrefs.ps_Image */
  122. #define IM_POSITIVE 0
  123. #define IM_NEGATIVE 1
  124.  
  125. /* constants for PrinterPSPrefs.ps_Shading */
  126. #define SHAD_BW        0
  127. #define SHAD_GREYSCALE 1
  128. #define SHAD_COLOR     2
  129.  
  130. /* constants for PrinterPSPrefs.ps_Dithering */
  131. #define DITH_DEFAULT 0
  132. #define DITH_DOTTY   1
  133. #define DITH_VERT    2
  134. #define DITH_HORIZ   3
  135. #define DITH_DIAG    4
  136.  
  137. /* constants for PrinterPSPrefs.ps_Transparency */
  138. #define TRANS_NONE   0
  139. #define TRANS_WHITE  1
  140. #define TRANS_COLOR0 2
  141.  
  142. /* constants for PrinterPSPrefs.ps_Aspect */
  143. #define ASP_HORIZ 0
  144. #define ASP_VERT  1
  145.  
  146. /* constants for PrinterPSPrefs.ps_ScalingType */
  147. #define ST_ASPECT_ASIS      0
  148. #define ST_ASPECT_WIDE      1
  149. #define ST_ASPECT_TALL      2
  150. #define ST_ASPECT_BOTH      3
  151. #define ST_FITS_WIDE      4
  152. #define ST_FITS_TALL      5
  153. #define ST_FITS_BOTH      6
  154.  
  155. /* constants for PrinterPSPrefs.ps_ScalingMath */
  156. #define SM_INTEGER    0
  157. #define SM_FRACTIONAL 1
  158.  
  159. /* constants for PrinterPSPrefs.ps_Centering */
  160. #define CENT_NONE  0
  161. #define CENT_HORIZ 1
  162. #define CENT_VERT  2
  163. #define CENT_BOTH  3
  164.  
  165.  
  166. /*****************************************************************************/
  167.  
  168.  
  169. #endif /* PREFS_PRINTERPS_H */
  170.